package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.DynamicTopic;
import com.ytjj.qmyx.mall.model.response.DynamicResponse;
import com.ytjj.qmyx.mall.model.response.DynamicTopicResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @description:
 */
public interface DynamicTopicDao {

    /**
    * 根据id集合获取话题列表
    * @returns: java.util.List<com.ytjj.qmyx.mall.model.response.DynamicTopicResponse>
    * 
    */
    List<DynamicTopicResponse> getTopicsByIds(@Param("maps") List<Map<String,Object>> maps);

    /**
    * 获取所有上架的话题
    * @returns: java.util.List<com.ytjj.qmyx.mall.model.response.DynamicTopicResponse>
    * 
    */
    List<DynamicTopicResponse> getAllTopics();

    /**
    * 获得话题下面的测评文章
    * @param topicId:
    * @returns: java.util.List<com.ytjj.qmyx.mall.model.response.DynamicResponse>
    * 
    */
    List<DynamicResponse> getDynamicsByTopic(Integer topicId);

    List<DynamicTopic> getByDynamicId(Integer dynamicId);

}
